package com.lmq.mytest
import com.lmq.genSessionWithUid.genRandomUserId
import scala.collection.JavaConversions._
import java.util
import com.lmq.utils
object MyTest {

  def main(args: Array[String]): Unit = {
    val x = new utils()

    //split date
    //2014-09-29
    println(x.Tsp2Time(1.411930382E12))



    println(x.timeStr2Tsp("2014-09-29T00:00:00.569Z"))
//    var cnt = 0
//    val y: util.ArrayList[Int] = genRandomUserId()
//    for (x <- y){
//      println(x)
//      cnt = cnt+1
//    }
//    println("all generated uid number is "+cnt)
//    println("avg len of session is "+ (0.0+27947)/cnt)

    /**
     * When
     * val lines = 27947
     * val avglen = 6.6
     * val userNumber = (1.88*lines/avglen).toInt
     * all generated uid number is 4024
     * avg len of session is 6.945079522862823
     */
  }


}
